<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录页面</title>
</head>
<body>
<%
String path =request.getContextPath()+"/servlet/LoginServlet";
%>
<form action="<%=path%>" method="post">
    <p>用户名：<input type="text" name="username" placeholder="请输入用户名"></p>
    <p>密码：<input type="password" name="password" placeholder="请输入密码"></p>
    <p><input type="submit" value="登录"></p>
</form>
</body>
</html>